/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.core.figures;

import org.eclipse.swt.graphics.Color;


/**
 * This class is used to represent the Comment figure.
 * 
 * @author Patrick Tessier
 * @since 14 sept. 06
 */
public class NoteFigure extends StickyNoteFigure {
	
	/**
	 * Creates a new comment figure with the given margin.
	 * 
	 * @param borderSize the size of the border
	 */
	public NoteFigure(int borderSize) {
		super(borderSize);
	}
	
	/**
	 * Creates a new comment figure.
	 */
	public NoteFigure() {
		super();
		// comment is not a named element...
		remove(nameLabel);
	}
	
	/**
	 * Set the body of the comment in the figure.
	 * 
	 * @param comment the body of the comment
	 */
	public void setComment(String comment) {
		super.setText(comment);
	}
	
	/* (non-Javadoc)
	 * @see com.cea.papyrus.core.common.figures.NodeFigure#setBorderColor(org.eclipse.swt.graphics.Color)
	 */
	/**
	 * 
	 * 
	 * @param borderColor 
	 */
	@Override
	public void setBorderColor(Color borderColor) {
		// redefinition not to see a border around the comment
		this.borderColor = borderColor;
	}
}

	
	

